#!/bin/bash

echo step1: check java home
echo $JAVA_HOME
java -version

echo step2: set classpath
lib="./lib"

class_path="./"

for dir in `ls $lib`
do 
    class_path="$lib/$dir:""$class_path"
done
echo class_path=$class_path

echo step3: start robot
java -cp $class_path com.smartrobot.main.RobotsMain &
